<?php
/**
 * Created by PhpStorm.
 * User: yhb
 * Date: 2019/3/21
 * Time: 10:33
 */

namespace app\admin\validate;


use think\Validate;

class Product extends Validate
{
    protected $rule = [
        'title' => 'require|unique:product,title'
    ];
    protected $field = [
        'title' => '商品名称'
    ];
}